import java.util.Scanner;

public class HomeWork07_09{
    static int intPower(int multi, int n){
        int a = 1;
        for(int i = 0; i < n; i++){
            a *= multi;
        }
        return a;
    }
    static boolean isPalindrome(int itger, int n){
        int backUp = itger;
        for(int i = 1; i <= n/2; i++){
            if((backUp / intPower(10, n - i)) != (itger % 10)){
                return false;
            }
            backUp %= intPower(10, n - i);
            itger /= 10;
        }
        return true;
    }
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        System.out.print("please enter an 5-digit integer");
        int itger = scan.nextInt();
        
        if(isPalindrome(itger, 5)){
            System.out.println("true");
        }else{
            System.out.println("false");
        }
    }
}